home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10797 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.iadfw.net!usenet
  2. From: Mark Nelson <markn@airmail.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Programming Serial Port with 115200bps
  5. Date: Tue, 19 Mar 1996 22:21:02 -0600
  6. Organization: customer of Internet America
  7. Message-ID: <314F87AE.4DA5@airmail.net>
  8. References: <314EFF4C.709F@cs.ust.hk>
  9. NNTP-Posting-Host: dal32-09.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. Ken Cheung wrote:
  16. > Dear All,
  17. >         I've been trying to find routines for serial port communication
  18. > and found one with interrupt driven.  However, the highest baud rate
  19. > was 38400bps only.  Any suggestion on where I can find information
  20. > to program the COM (indeed, the 16550A) into 115200bps?
  21. > Thanks in advance.
  22. > Ken Cheung
  23. > kenken@cs.ust.hk
  24.  
  25. Under MS-DOS, you have to write directly to the UART in order to 
  26. set the baud rate to 115200.  It is simply a matter of setting the
  27. baud rate divisor to 1.  If you have access to any source that
  28. writes directly to the UART, you should be able to easily modify
  29. it to support that rate if it doesn't already do so.
  30.  
  31. There is some C source to handle RS-232 communcations in C on my
  32. home page.  Just follow the links to Articles and pick the one that
  33. looks right.  I think the code in the article will need to be modified,
  34. but only a tiny bit.
  35.  
  36. If you are opening the port under Windows, please ignore all this advice.
  37.  
  38. Mark Nelson
  39. http://web2.airmail.net/markn
  40.